<?php
include_once 'include.php';

$published = $_POST['published'];
$id = $_POST['id'];

$FeaturedObj = new Featured();
$sql = "UPDATE `".$FeaturedObj->get_table_name()."` SET `published` = '".$published."' WHERE `id` = '".$id."'";
if(!mysql_query($sql)){
	echo "error";
}
?>